function alertSubmit(type,msg){
	var pageii = $.layer({
	    shade: [0],
	    area: ['auto','auto'],
	    dialog: {
	        msg: 'Make sure approval '+msg+" ?",
	        btns: 2,                    
	        type: 4,
	        btn: ['Submit','Cancle'],
	        yes: function(){
				$.post(weburl + 'costpoints/apply', {
					"type" : type 
				}, function(data) {
					  $.layer({
				            area : ['auto','auto'],
				            dialog : {msg:data,type : 0}
				        });
				}, "json");
	            //layer.msg('重要', 1, 1);
	        }, no: function(){
	            //layer.msg('奇葩', 1, 13);
	        	layer.close(pageii);
	        }
	    }
	});
}